// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import '@/plugin'
import Vue from 'vue'
import store from '@/store/index.js'
import App from './App'
import Router from 'vue-router'
import route from './router'
import '@/assets/css/index.styl'
import YDUI from 'vue-ydui';
import 'vue-ydui/dist/ydui.rem.css';
// import 'vue-ydui/dist/ydui.base.css';
// import 'swiper/dist/css/swiper.css'
// import VueAwesomeSwiper from 'vue-awesome-swiper'
import '@/assets/css/commen.styl'
import globalComponents from '@/base/globalComponents'
import filter from '@/util/filters'
import directives from '@/util/directives'
import http from '@/util/http/index.js'
import fastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'
fastClick.attach(document.body)
Vue.use(globalComponents)
Vue.use(http)
Vue.use(Router)
Vue.use(VueLazyLoad, {
  loading: 'http://iph.href.lu/150x150'
})
Vue.use(YDUI);
// Vue.use(VueAwesomeSwiper)
Vue.use(filter)
Vue.use(directives)
Vue.config.productionTip = false
const router = new Router(route)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
})

